package com.mhy.netsafe.utils.manager;

/**
 * author    : mahongyin
 * e-mail    : mhy.work@qq.com
 * date      : 2019/6/12B 16:10
 * introduce : 隐藏部分手机号管理类
 */

public class HidePartPhoneManager {

    public static String hidePartPhone(String phoneNumber) {
        String phoneHidePart = phoneNumber.replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2");
        return phoneHidePart;
    }
}
